﻿@{
    ViewBag.Title = "Index";
}

<h1>Lista de Alumnos</h1>
<a href="@Url.Action("Alta","Alumno")">Agregar nuevo Alumno</a> 
<table>
    <thead>
        <tr>
            <th>Nombre</th>
            <th>Apellido</th>
            <th>Dni</th>
            <th>Acciones</th>
        </tr>
    </thead>
@foreach (var item in Model)
{
    <tr>
        <td>@item.Nombre</td>
        <td>@item.Apellido</td>
        <td>@item.Dni</td>
        <td>
            <a href="@Url.Action("Baja","Alumno", new{id=item.Id})">Borrar</a>
            <a href="@Url.Action("Modificar","Alumno", new{id=item.Id})">Modificar</a>
            <a href="@Url.Action("Inscribirse","Alumno", new{id=item.Id})">Inscribir a materia</a>
        </td>
    </tr>
}
</table>
